package org.restoran.model;

import org.springframework.data.domain.Persistable;

import java.io.Serializable;

/**
 * Simple interface for entities that added setter for primary key.
 *
 * @author Snisar Bogdan.
 */
public interface Identifiable<E extends Serializable> extends Persistable<E> {

    /**
     * Set id for entity.
     * @param id id value.
     */
    void setId(E id);

}
